package com.uubx.result;

/**
 * Created by zxd on 2020/11/10
 **/
public class Result<T> {

    //状态码 0代表成功
    private Integer code;

    //错误信息
    private String msg;

    //总记录数
    private Long count;

    //封装页面显示的数据
    private T  data;


    public Result() {
    }

    public Result(Integer code, String msg, Long count, T data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
